package com.wy.dao;

import com.wy.model.sys.Cars;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CarsMapper {
    List<Cars> carList(@Param("pageSize")int pageSize, @Param("start")int start, @Param("plateNum")String plateNum,@Param("householdName") String householdName);

    Integer carSize(@Param("pageSize")int pageSize, @Param("start")int start,@Param("plateNum")String plateNum,@Param("householdName")String householdName);
    int deleteByPrimaryKey(Integer id);

    int insert(Cars record);

    int insertSelective(Cars record);

    Cars selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cars record);

    int updateByPrimaryKey(Cars record);

    void insertBatch(List<Cars> list);

    void deleteCars(@Param("groupId")List<String> cid);

    List<Cars> getCarsByHid(Integer hid);

    void deleteCarsByHids(@Param("groupId")List<String> hid);

    void deleteCarsByHid(@Param("hid")Integer hid);
}